<?php

/*
 * Elaboraco Por: Ebrain Cedeno.
 */

class UserController extends BaseController{
    
    //public $theme_name = "user";
    
    public function ControlIndex(){
        
        
        $this->login_label = $this->TLabel();
        $this->login_label->Name = 'label_login';
        $this->login_label->Caption = "Usuario:";
        $this->login_label->Visible = true;
        $this->login_label->Width = "100px";
        $this->login_label->Height = "20px";
        $this->login_label->Color = "blue";
        $this->login_label->Align = "right";
        //$this->login_label->Cursor = "pointer";
        //$this->login_label->Left = "50%";
        //$this->login_label->Top = "50%";
        $this->login_label->Font = "15px Arial";
        $this->login_label->FontColor = "white";
        
        $this->login = $this->TEdit();
        $this->login->Name = "tedit_login";
        $this->login->Color  = "gray";
        $this->login->BorderStyle = "1px solid black";
        $this->login->Font = "15px Arial";
        $this->login->FontColor = "white";
        $this->login->ReadOnly = false;
        //$this->login->Visible = true;
        //$this->login->MaxLength = 2;
        $this->login->Width = "250px";
        $this->login->Height = "20px";
        //$this->login->Top = "50px";
        //$this->login->Left = "50px";
        //$this->login->Cursor = "pointer";
        $this->login->Aditional["data-validate"] = "validate(required)"; 
      
        
        // campo de clave
        
        $this->login_label_clave = $this->TLabel();
        $this->login_label_clave->Caption = "Clave:";
        $this->login_label_clave->Width = "100px";
        $this->login_label_clave->Height = "20px";
        $this->login_label_clave->Color = "blue";
        $this->login_label_clave->Font = "15px Arial";
        $this->login_label_clave->FontColor = "white";
        $this->login_label_clave->Align = "right";
        
        //campo de texto
        
        $this->login_clave = $this->TEdit();
        $this->login_clave->Name = "tedit_clave";
        $this->login_clave->Width = "250px";
        $this->login_clave->Height = "20px";
        $this->login_clave->Color = "gray";
        $this->login_clave->BorderStyle = "1px solid black";
        $this->login_clave->Font = "15px Arial";
        $this->login_clave->FontColor = "white";
        $this->login_clave->Password = true;
        $this->login_clave->Enabled = true;
        
        $this->login_button = $this->TButton();
        $this->login_button->Name = "tbutton_entrar";
        $this->login_button->Caption = "Entrar";
        $this->login_button->Width = "80px";
        $this->login_button->Height = "30px";
        $this->login_button->Cursor = "pointer";
        $this->login_button->Color = "gray";
        $this->login_button->Font = "15px Arial";
        $this->login_button->FontColor = "white";
        $this->login_button->Enabled = true;
        $this->login_button->Aditional["style"] = array('border:1px solid black');
        
        
    }
    
    public function ControlSave(){
        $this->message = "hola mundo estas en el metodo control guardar";
        $this->redirec("index",array("id"=>1));
    }
    
}

?>
